package com.cloudcc.mobile.net;

import android.content.Context;

import com.cloudcc.mobile.AppContext;
import com.cloudcc.mobile.presenter.LoginPresenter;


/**
 * 用户保持对话的client
 * 
 * @author seven
 * 
 */
public class KeepSessionClient {
	
	private LoginPresenter mLoginPresenter;
	private static KeepSessionClient mClient;
	private Context mContext;
	private KeepSessionClient(Context context){
		mContext =context;
		mLoginPresenter =new LoginPresenter();
	}
	
	public static KeepSessionClient getInstance(){
		if (mClient==null) {
			mClient =new KeepSessionClient(AppContext.getInstance());
		}
		return mClient;
	}

	/**
	 * 刷新绑定
	 */
	public void refreshServerBinding(){
		mLoginPresenter.refreshBinding();
	}
	
	

}
